{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"only\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport { getHiddenCssUtilityClass } from './hiddenCssClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    breakpoints\n  } = ownerState;\n  const slots = {\n    root: ['root', ...breakpoints.map(_ref => {\n      let {\n        breakpoint,\n        dir\n      } = _ref;\n      return dir === 'only' ? `${dir}${capitalize(breakpoint)}` : `${breakpoint}${capitalize(dir)}`;\n    })]\n  };\n  return composeClasses(slots, getHiddenCssUtilityClass, classes);\n};\nconst HiddenCssRoot = styled('div', {\n  name: 'PrivateHiddenCss',\n  slot: 'Root'\n})(_ref2 => {\n  let {\n    theme,\n    ownerState\n  } = _ref2;\n  const hidden = {\n    display: 'none'\n  };\n  return _extends({}, ownerState.breakpoints.map(_ref3 => {\n    let {\n      breakpoint,\n      dir\n    } = _ref3;\n    if (dir === 'only') {\n      return {\n        [theme.breakpoints.only(breakpoint)]: hidden\n      };\n    }\n    return dir === 'up' ? {\n      [theme.breakpoints.up(breakpoint)]: hidden\n    } : {\n      [theme.breakpoints.down(breakpoint)]: hidden\n    };\n  }).reduce((r, o) => {\n    Object.keys(o).forEach(k => {\n      r[k] = o[k];\n    });\n    return r;\n  }, {}));\n});\n/**\n * @ignore - internal component.\n */\n\nfunction HiddenCss(props) {\n  const {\n      children,\n      className,\n      only\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const theme = useTheme();\n  if (process.env.NODE_ENV !== 'production') {\n    const unknownProps = Object.keys(other).filter(propName => {\n      const isUndeclaredBreakpoint = !theme.breakpoints.keys.some(breakpoint => {\n        return `${breakpoint}Up` === propName || `${breakpoint}Down` === propName;\n      });\n      return !['classes', 'theme', 'isRtl', 'sx'].includes(propName) && isUndeclaredBreakpoint;\n    });\n    if (unknownProps.length > 0) {\n      console.error(`MUI: Unsupported props received by \\`<Hidden implementation=\"css\" />\\`: ${unknownProps.join(', ')}. Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?`);\n    }\n  }\n  const breakpoints = [];\n  for (let i = 0; i < theme.breakpoints.keys.length; i += 1) {\n    const breakpoint = theme.breakpoints.keys[i];\n    const breakpointUp = other[`${breakpoint}Up`];\n    const breakpointDown = other[`${breakpoint}Down`];\n    if (breakpointUp) {\n      breakpoints.push({\n        breakpoint,\n        dir: 'up'\n      });\n    }\n    if (breakpointDown) {\n      breakpoints.push({\n        breakpoint,\n        dir: 'down'\n      });\n    }\n  }\n  if (only) {\n    const onlyBreakpoints = Array.isArray(only) ? only : [only];\n    onlyBreakpoints.forEach(breakpoint => {\n      breakpoints.push({\n        breakpoint,\n        dir: 'only'\n      });\n    });\n  }\n  const ownerState = _extends({}, props, {\n    breakpoints\n  });\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(HiddenCssRoot, {\n    className: clsx(classes.root, className),\n    ownerState: ownerState,\n    children: children\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? HiddenCss.propTypes = {\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * Specify which implementation to use.  'js' is the default, 'css' works better for\n   * server-side rendering.\n   */\n  implementation: PropTypes.oneOf(['js', 'css']),\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  lgDown: PropTypes.bool,\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  lgUp: PropTypes.bool,\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  mdDown: PropTypes.bool,\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  mdUp: PropTypes.bool,\n  /**\n   * Hide the given breakpoint(s).\n   */\n  only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']))]),\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  smDown: PropTypes.bool,\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  smUp: PropTypes.bool,\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  xlDown: PropTypes.bool,\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  xlUp: PropTypes.bool,\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  xsDown: PropTypes.bool,\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  xsUp: PropTypes.bool\n} : void 0;\nexport default HiddenCss;","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_excluded","React","clsx","PropTypes","unstable_composeClasses","composeClasses","capitalize","styled","useTheme","getHiddenCssUtilityClass","jsx","_jsx","useUtilityClasses","ownerState","classes","breakpoints","slots","root","map","breakpoint","dir","HiddenCssRoot","name","slot","theme","hidden","display","only","up","down","reduce","r","o","Object","keys","forEach","k","HiddenCss","props","children","className","other","process","env","NODE_ENV","unknownProps","filter","propName","isUndeclaredBreakpoint","some","includes","length","console","error","join","i","breakpointUp","breakpointDown","push","onlyBreakpoints","Array","isArray","propTypes","node","string","implementation","oneOf","lgDown","bool","lgUp","mdDown","mdUp","oneOfType","arrayOf","smDown","smUp","xlDown","xlUp","xsDown","xsUp"],"sources":["/data/messenger.client/node_modules/@mui/material/esm/Hidden/HiddenCss.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"only\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport capitalize from '../utils/capitalize';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport { getHiddenCssUtilityClass } from './hiddenCssClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    breakpoints\n  } = ownerState;\n  const slots = {\n    root: ['root', ...breakpoints.map(({\n      breakpoint,\n      dir\n    }) => {\n      return dir === 'only' ? `${dir}${capitalize(breakpoint)}` : `${breakpoint}${capitalize(dir)}`;\n    })]\n  };\n  return composeClasses(slots, getHiddenCssUtilityClass, classes);\n};\n\nconst HiddenCssRoot = styled('div', {\n  name: 'PrivateHiddenCss',\n  slot: 'Root'\n})(({\n  theme,\n  ownerState\n}) => {\n  const hidden = {\n    display: 'none'\n  };\n  return _extends({}, ownerState.breakpoints.map(({\n    breakpoint,\n    dir\n  }) => {\n    if (dir === 'only') {\n      return {\n        [theme.breakpoints.only(breakpoint)]: hidden\n      };\n    }\n\n    return dir === 'up' ? {\n      [theme.breakpoints.up(breakpoint)]: hidden\n    } : {\n      [theme.breakpoints.down(breakpoint)]: hidden\n    };\n  }).reduce((r, o) => {\n    Object.keys(o).forEach(k => {\n      r[k] = o[k];\n    });\n    return r;\n  }, {}));\n});\n/**\n * @ignore - internal component.\n */\n\nfunction HiddenCss(props) {\n  const {\n    children,\n    className,\n    only\n  } = props,\n        other = _objectWithoutPropertiesLoose(props, _excluded);\n\n  const theme = useTheme();\n\n  if (process.env.NODE_ENV !== 'production') {\n    const unknownProps = Object.keys(other).filter(propName => {\n      const isUndeclaredBreakpoint = !theme.breakpoints.keys.some(breakpoint => {\n        return `${breakpoint}Up` === propName || `${breakpoint}Down` === propName;\n      });\n      return !['classes', 'theme', 'isRtl', 'sx'].includes(propName) && isUndeclaredBreakpoint;\n    });\n\n    if (unknownProps.length > 0) {\n      console.error(`MUI: Unsupported props received by \\`<Hidden implementation=\"css\" />\\`: ${unknownProps.join(', ')}. Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?`);\n    }\n  }\n\n  const breakpoints = [];\n\n  for (let i = 0; i < theme.breakpoints.keys.length; i += 1) {\n    const breakpoint = theme.breakpoints.keys[i];\n    const breakpointUp = other[`${breakpoint}Up`];\n    const breakpointDown = other[`${breakpoint}Down`];\n\n    if (breakpointUp) {\n      breakpoints.push({\n        breakpoint,\n        dir: 'up'\n      });\n    }\n\n    if (breakpointDown) {\n      breakpoints.push({\n        breakpoint,\n        dir: 'down'\n      });\n    }\n  }\n\n  if (only) {\n    const onlyBreakpoints = Array.isArray(only) ? only : [only];\n    onlyBreakpoints.forEach(breakpoint => {\n      breakpoints.push({\n        breakpoint,\n        dir: 'only'\n      });\n    });\n  }\n\n  const ownerState = _extends({}, props, {\n    breakpoints\n  });\n\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(HiddenCssRoot, {\n    className: clsx(classes.root, className),\n    ownerState: ownerState,\n    children: children\n  });\n}\n\nprocess.env.NODE_ENV !== \"production\" ? HiddenCss.propTypes = {\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n\n  /**\n   * Specify which implementation to use.  'js' is the default, 'css' works better for\n   * server-side rendering.\n   */\n  implementation: PropTypes.oneOf(['js', 'css']),\n\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  lgDown: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  lgUp: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  mdDown: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  mdUp: PropTypes.bool,\n\n  /**\n   * Hide the given breakpoint(s).\n   */\n  only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']))]),\n\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  smDown: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  smUp: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  xlDown: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  xlUp: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and down are hidden.\n   */\n  xsDown: PropTypes.bool,\n\n  /**\n   * If `true`, screens this size and up are hidden.\n   */\n  xsUp: PropTypes.bool\n} : void 0;\nexport default HiddenCss;"],"mappings":"AAAA,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,QAAQ,MAAM,oCAAoC;AACzD,MAAMC,SAAS,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC;AACnD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,uBAAuB,IAAIC,cAAc,QAAQ,WAAW;AACrE,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,OAAOC,MAAM,MAAM,kBAAkB;AACrC,OAAOC,QAAQ,MAAM,oBAAoB;AACzC,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAE/C,MAAMC,iBAAiB,GAAGC,UAAU,IAAI;EACtC,MAAM;IACJC,OAAO;IACPC;EACF,CAAC,GAAGF,UAAU;EACd,MAAMG,KAAK,GAAG;IACZC,IAAI,EAAE,CAAC,MAAM,EAAE,GAAGF,WAAW,CAACG,GAAG,CAAC,QAG5B;MAAA,IAH6B;QACjCC,UAAU;QACVC;MACF,CAAC;MACC,OAAOA,GAAG,KAAK,MAAM,GAAI,GAAEA,GAAI,GAAEd,UAAU,CAACa,UAAU,CAAE,EAAC,GAAI,GAAEA,UAAW,GAAEb,UAAU,CAACc,GAAG,CAAE,EAAC;IAC/F,CAAC,CAAC;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